home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 June / PersonalComputerWorld-June2009-CoverdiscCD.iso / Software / Shareware / Mockups for Desktop 1.5.27 / MockupsForDesktop.air / MockupsAir.swf / scripts / _SwatchPanelStyle.as < prev    next >
Encoding:
Text File  |  2009-03-03  |  1.8 KB  |  57 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _SwatchPanelStyle
  8.    {
  9.       public function _SwatchPanelStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var fbs:IFlexModuleFactory = param1;
  17.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("SwatchPanel");
  18.          if(!style)
  19.          {
  20.             style = new CSSStyleDeclaration();
  21.             StyleManager.setStyleDeclaration("SwatchPanel",style,false);
  22.          }
  23.          if(style.defaultFactory == null)
  24.          {
  25.             style.defaultFactory = function():void
  26.             {
  27.                this.columnCount = 20;
  28.                this.borderColor = 10856878;
  29.                this.swatchHighlightColor = 16777215;
  30.                this.paddingLeft = 5;
  31.                this.verticalGap = 0;
  32.                this.fontSize = 11;
  33.                this.shadowColor = 5068126;
  34.                this.swatchBorderSize = 1;
  35.                this.swatchHighlightSize = 1;
  36.                this.paddingBottom = 5;
  37.                this.textFieldStyleName = "swatchPanelTextField";
  38.                this.swatchHeight = 12;
  39.                this.paddingTop = 4;
  40.                this.highlightColor = 16777215;
  41.                this.textFieldWidth = 72;
  42.                this.paddingRight = 5;
  43.                this.swatchGridBackgroundColor = 0;
  44.                this.swatchGridBorderSize = 0;
  45.                this.horizontalGap = 0;
  46.                this.swatchWidth = 12;
  47.                this.backgroundColor = 15066855;
  48.                this.previewHeight = 22;
  49.                this.swatchBorderColor = 0;
  50.                this.previewWidth = 45;
  51.             };
  52.          }
  53.       }
  54.    }
  55. }
  56.  
  57.